package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods")
public class Goods {
    @TableId(value = "g_id", type = IdType.AUTO)
    private Integer g_id;
    private String g_name;
    private Double g_price;
    private Integer g_stock_quantity;
    private String g_category;
    private Integer g_user_id;
    private Boolean g_is_active;
    private Boolean g_is_trade;
    private String g_description;
    private Date g_create_time;

    @Override
    public String toString() {
        return "Goods{" +
                "g_id=" + g_id +
                ", g_name='" + g_name + '\'' +
                ", g_price=" + g_price +
                ", g_stock_quantity=" + g_stock_quantity +
                ", g_category='" + g_category + '\'' +
                ", g_user_id=" + g_user_id +
                ", g_is_active=" + g_is_active +
                ", g_is_trade=" + g_is_trade +
                ", g_description='" + g_description + '\'' +
                ", g_create_time=" + g_create_time +
                '}';
    }
}
